package com.nbsaas.boot.config.rest.convert;

import com.nbsaas.boot.config.data.entity.UserConfig;
import com.nbsaas.boot.config.api.domain.response.UserConfigResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 用户配置-实体对象转化成响应对象
*/

public class UserConfigResponseConvert  implements Converter<UserConfigResponse,UserConfig> {

    @Override
    public UserConfigResponse convert(UserConfig source) {
        UserConfigResponse  result = new  UserConfigResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

